package com.cxl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: 20971
 * @time: 2022/3/7 22:23
 * @description:
 */

@Data
public class User implements Serializable {

    /*主键ID*/
    @Id
    private String id;
    /*日志内容*/
    private String content;
    /*日志时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date logdate;

   /* @Transient
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begindate;

    @Transient
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enddate;
*/
    @Transient
    private Integer pageNum = 1;

    @Transient
    private Integer pageSize =2;

    /*逻辑删除  1不存在  2存在*/
    @Transient
    private Integer isdel;
}
